package com.osfw.activiti.service.running;


import com.baomidou.mybatisplus.extension.service.IService;
import com.osfw.activiti.entity.history.ActHiProcinst;
import com.osfw.activiti.entity.running.ActRuVar;

import java.util.Map;

/**
 * 流程变量表 服务层
 */
public interface IActRuVarService extends IService<ActRuVar> {

    /**
     * 添加流程全局变量
     *
     * @param procInstId 流程实例ID
     * @param variables  全局变量
     */
    boolean addGlobalVariables(Long procInstId, Map<String, Object> variables);

    /**
     * 添加流程局部变量
     *
     * @param procInstId 流程实例ID
     * @param procExecId 流程执行ID
     * @param procTaskId 流程任务ID
     * @param variables  流程局部变量
     */
    boolean addLocalVariables(Long procInstId, Long procExecId, Long procTaskId, Map<String, Object> variables);

}
